<template>
	<view class="common">
		<uni-nav-bar color="#fff" background-color="rgba(255,255,255,0)" :border="false" left-icon="left" status-bar
			title="预约成功" @clickLeft="back" />
		<view class="main">
			<view class="container">
				<view class="part1 part">
						<image src="/pacakgeRepair/static/success.png"></image>
						<view class="">
							预约成功
						</view>
					</view>
					<view class="part2 part">
						预约编号
					
					</view>
					
				
					<!-- #ifdef MP -->
					<view class="part3 part">
						<button type="primary" style="margin-left: 0rpx; margin-right: 0rpx; background-color: #195fff;" @click="goHome">返回首页</button>
						<button type="primary" @click="goDetail" style=" margin-left: 0rpx; margin-right: 0rpx;background-color: #bfbfbf;">预约详情</button>
					
					</view>
					<!-- #endif -->
					<!-- #ifndef MP -->
					<view class="part3 part">
						<button type="primary" @click="goHome">返回首页</button>
						<button type="primary" @click="goDetail" style="background-color: #bfbfbf;">预约详情</button>
					
					</view>
					<!-- #endif -->
				
					
				
					
				
				
				</view>
			</view>
			
				

	
		</view>
	
</template>
<script>
	export default {
		data() {},


		methods: {
			goHome(){
				uni.switchTab({
					url: '/pages/index/index'
				});
			},
			goDetail(){
				uni.showToast({
					title: `查看预约详情`
				});
				uni.navigateTo({
					url: '/pacakgeRepair/pages/packageRepairBookDetail/packageRepairBookDetail'
				});
				
			}
		}
		
	}
</script>
<style scoped>
	
	.common>.main>* {
		background-color: #fff;
		padding: 30rpx;
	}
	
	.container{
		display:flex;
		flex-direction: column;
		align-items: center;
		row-gap: 20rpx;
		text-align: center;
		
	}
	.part1{
		font-weight: bold;
		font-size: 30rpx;
	}
	.part1>image{
		width: 150rpx;
		height: 150rpx;
	}
	.part2{
		font-weight: bold;
		margin: 30rpx 0rpx;
	}
	.part3{
		width: 100%;
		row-gap: 30rpx;
		display: flex;
		flex-direction: column;
	}
	
	.part3>uni-button {
		border-radius: 30rpx;
		width: 100%;
	}
	
	
	/* #ifdef MP */
	.container{
		background-color: #fff;
		
		
		
		
	} 
	.part1 {
		margin-top: 30rpx;
		
	}
	
	.part3 {

	    row-gap: 30rpx;
	  
	    padding-bottom: 30rpx;
	}
	

	
	
	/* #endif */
	
	
</style>